package com.compton.EVENT
{
	import com.compton.VO.SearchVO;
	
	import flash.events.Event;
	
	//provides the search event and vo movement, add wines event and array movement, wine error event and errormessgaing
	public class WineEvent extends Event
	{
		public static const ADD_WINES:String = "Add Wines";
		public var wineArray:Array = []
		
		public static const WINE_SEARCH_ERROR:String = "wineSearchError";
		public var errorMessage:String;
		
		public static const START_SEARCH:String = "Start Search";
		public var searchVO:SearchVO;
		
		public function WineEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			return new WineEvent(type, bubbles, cancelable);
		}
	}
}